package pers.ree.demo.base;

public class CharDemo {

    public static void main(String[] args) {
        char[] charArray1 = new char[0];
        char[] charArray2 = {}; // 也是new一个char[0]的数组

        System.out.println("charArray1.length=" + charArray1.length);
        // false
        System.out.println(charArray1.toString() == "");

        System.out.println("charArray2.length=" + charArray2.length);
        // false
        System.out.println(charArray2.toString() == "");
    }
}
